/*
 * @Author: ChunLai
 * @Date: 2022-04-21 17:24:25
 * @LastEditTime: 2023-08-02 13:46:12
 * @Description: 多文件单独签名 + 批量签名
 * @FilePath: \0.newInsure\src\store\modules\filesign.js
 */

const state = {
  fileType: '99', // 赋值签名图片地址的文件标识
  /* === 签名板 === */
  userType: '', // 用户类型
  signName: '', // 签名板显示用户名
  openSign: false,
  /* === 签名板-END === */
  userObj: {},
};

const getters = {
  userType: (state) => state.userType,
  signName: (state) => state.signName,
  openSign: (state) => state.openSign,
  userObj: (state) => state.userObj,
  fileType: (state) => state.fileType,
};

const mutations = {
  SET_STATE_CONFIG(state, payload) {
    Object.assign(state, payload);
  },
  SET_SIGN_OBJ(state, payload) {
    state.userObj = {};
    state.userObj = payload;
  },
};

const actions = {};

export default {
  namespaced: true,
  state,
  getters,
  mutations,
  actions,
};
